package homeWork_20190319;

public class Homework_05 {
	static void sort(int number1,int number2,int number3){
		int a;
		if(number1>number2){
			a = number1;
			number1 = number2;
			number2 = a;
		}
		if(number1>number3){
			a = number1;
			number1 = number3;
			number3 = a;
		}
		if(number2>number3){
			a = number2;
			number2 = number3;
			number3 = a;
		}
		System.out.println(number1+","+number2+","+number3);
		
	}
	public static void main(String[] args){
		int number[] = new int[3];
		
		for(int i =0;i<3;i++){
			number[i]= (int)(Math.random()*100);
		}
		sort(number[0],number[1],number[2]);
		
	}
}
